package top.hekun.study.core.model;

import java.util.Random;

/**
 * 修改方法内容示例类
 *
 * @Author: 贺坤
 * @Date: 2023/5/10 10:08
 */
public class HelloWordModifyMethodCode {

    public void test() throws Exception {
        System.out.println(" 调用方法 test()V");
    }

    public void test1() {
        System.out.println(" 调用方法 test1()V");
    }

    public double test2(int a, int b) {
        double d = a + b;
        return d;
    }
    public double test3(int a, int b) throws InterruptedException {
        double d = a + b;
        Random random = new Random();
        Thread.sleep(random.nextInt(500));
        return d;
    }

    public int test4(int a, int b) throws InterruptedException {
        int c = a + b;
        int d = c*100;
        return d;
    }
    public double test5(int a, int b) throws InterruptedException {
        double d = a + b;
        Random random = new Random();
        Thread.sleep(random.nextInt(500));
        return d;
    }
}
